package com.library.model.daoimple;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.library.model.dao.UserUpdateDAO;
import com.library.model.dto.register.RegisterDTO;

public class UserUpdateDAOImple extends SqlMapClientDaoSupport implements UserUpdateDAO {

	public RegisterDTO getUser(String id) {
		return (RegisterDTO)getSqlMapClientTemplate().queryForObject("RegisterMap.getUser",id);
	}

	public void updateUser(RegisterDTO dto) {
		getSqlMapClientTemplate().update("RegisterMap.updateUser",dto);
	}

}
